package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收入对象 income
 *
 * @author ruoyi
 * @date 2021-08-10
 */
public class Income extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 收款类型 0：客户定金，1：客户结款，2：其他
     */
    @Excel(name = "收款类型 0：客户定金，1：客户结款，2：其他")
    private String incomeType;

    /**
     * 收款金额
     */
    @Excel(name = "收款金额")
    private BigDecimal incomeAmount;

    /**
     * 收款人id
     */
    @Excel(name = "收款人id")
    private Long payeeId;

    /**
     * 收款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "收款时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date incomeTime;

    /**
     * 收款账户
     */
    @Excel(name = "收款账户")
    private String accountsReceivable;

    /**
     * 收款凭证
     */
    @Excel(name = "收款凭证")
    private String collectionOfPayments;

    /**
     * 收款备注
     */
    @Excel(name = "收款备注")
    private String incomeRemark;

    /**
     * 是否删除
     */
    @Excel(name = "是否删除")
    private Integer isDel;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新人
     */
    @Excel(name = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 收款人
     */
    @Excel(name = "收款人")
    private String nickName;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setIncomeType(String incomeType) {
        this.incomeType = incomeType;
    }

    public String getIncomeType() {
        return incomeType;
    }

    public void setIncomeAmount(BigDecimal incomeAmount) {
        this.incomeAmount = incomeAmount;
    }

    public BigDecimal getIncomeAmount() {
        return incomeAmount;
    }

    public void setPayeeId(Long payeeId) {
        this.payeeId = payeeId;
    }

    public Long getPayeeId() {
        return payeeId;
    }

    public void setIncomeTime(Date incomeTime) {
        this.incomeTime = incomeTime;
    }

    public Date getIncomeTime() {
        return incomeTime;
    }

    public void setAccountsReceivable(String accountsReceivable) {
        this.accountsReceivable = accountsReceivable;
    }

    public String getAccountsReceivable() {
        return accountsReceivable;
    }

    public void setCollectionOfPayments(String collectionOfPayments) {
        this.collectionOfPayments = collectionOfPayments;
    }

    public String getCollectionOfPayments() {
        return collectionOfPayments;
    }

    public void setIncomeRemark(String incomeRemark) {
        this.incomeRemark = incomeRemark;
    }

    public String getIncomeRemark() {
        return incomeRemark;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Integer getIsDel() {
        return isDel;
    }


    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nikeName) {
        this.nickName = nikeName;
    }

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String getUpdateBy() {
        return updateBy;
    }

    @Override
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("incomeType", getIncomeType())
                .append("incomeAmount", getIncomeAmount())
                .append("payeeId", getPayeeId())
                .append("incomeTime", getIncomeTime())
                .append("accountsReceivable", getAccountsReceivable())
                .append("collectionOfPayments", getCollectionOfPayments())
                .append("incomeRemark", getIncomeRemark())
                .append("isDel", getIsDel())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("nickName", getNickName())
                .toString();
    }
}
